<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c ="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition template="./../plantillas/plantillaBase.xhtml">
            <ui:define name="titulo">
                Principal
            </ui:define>
             <ui:define name="identificador">
             </ui:define>
            <ui:define name="editortexto">
              <script type="text/javascript" src="../resources/js/ckeditor/ckeditor.js"></script>
              <script type="text/javascript" src="../resources/js/editor.js"/>
              <script type="text/javascript">
                  window.onload = function()
			{
			       CARGARCKE();
                               ESTILOCKE();
                               plantillabase();
			}
              </script>

            </ui:define>
            <ui:insert name="login"></ui:insert>
            <ui:define name="contenido">
                <h:form prependId="false">
                    <p:fieldset id="reporteExpe" legend="Generar Reporte">
                           <h:panelGrid columns="4" width="500" cellspacing="8">
                            <h:outputLabel for="numExpeR" value="Ingrese el codigo del Expediente:"/>
                            <p:inputMask id="numExpeR" value="#{plantillaExpediente.numExpediente}"  mask="aa-99999-9999"/>
                            <p:commandButton value="Buscar" ajax="submit" action="#{plantillaExpediente.buscar}" onclick="alerta();"/>
<!--                            <p:commandButton value="Mostrar" onclick="plantillabase();" />-->
                        </h:panelGrid>
                        <h:panelGrid columns="1" width="800" cellspacing="8">
                            <textarea class="2" cols="2" id="editor1" rows="2" style="left: 193px; top: 25px; position: absolute" readonly="True"></textarea>
                        </h:panelGrid>
                        <h:panelGrid columns="2" width="200" cellspacing="8">
                       </h:panelGrid>
                    </p:fieldset>
                    <div>
                        <input type="hidden" id="editor2" value="#{plantillaExpediente.contenido}" readonly="True" style="visibility:hidden;"/>
                    </div>
                </h:form>
           </ui:define>
        </ui:composition>
   </body>
</html>